package com.ems.dao.Invigilate.room;

import com.ems.pojo.Invigilate.room.RoomUser;
import com.ems.pojo.Invigilate.room.TestRoom;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @Auther: 伟伟
 * @Date: 2020/2/18
 * @Description: 描述
 * @Version: 1.0
 */
public interface RoomUserDao {
    public List<RoomUser> getRoomUserByTrId(int tr_id);

    public List<RoomUser> getUnRoomUserByTrId(int tr_id);

    public void allowUser(RoomUser roomUser);

    public void deleteAllowUser(RoomUser roomUser);

    public List<RoomUser> getAllRoomUserByTrId(@Param("testRoomList") List<TestRoom> testRoomList);

    public void deleteRoomUserById(int id);

    public List<RoomUser> getStudentApply(@Param("id") int id,@Param("tr_name") String tr_name);

    public void deleteApplyTestRoom(@Param("ru_id") int ru_id,@Param("id") int id);

    public void addAgreeRoomUser(RoomUser roomUser);

    public List<RoomUser> getAlreadyTestRooInfo(Map<String,Object> map);

    public void exitAlreadyTestRoom(RoomUser roomUser);

    public void deleteRoomUserByTrId(int tr_id);
}
